home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / VSVBX.ZIP / SPLITTER.FRM < prev    next >
Text File  |  1994-03-09  |  8KB  |  222 lines

  1. VERSION 2.00
  2. Begin Form Splitter 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Resize controls using the colored splitter bars"
  5.    ClientHeight    =   3720
  6.    ClientLeft      =   570
  7.    ClientTop       =   1635
  8.    ClientWidth     =   8415
  9.    Height          =   4185
  10.    Left            =   480
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   3720
  13.    ScaleWidth      =   8415
  14.    Top             =   1260
  15.    Width           =   8595
  16.    Begin VideoSoftElastic VSElastic1 
  17.       Align           =   5  'Fill Container
  18.       AutoSizeChildren=   2  'Uneven Horizontal
  19.       BackColor       =   &H0000FF00&
  20.       BorderWidth     =   0
  21.       Height          =   3720
  22.       Left            =   0
  23.       Splitter        =   1  'Yes (with uneven spacing)
  24.       TabIndex        =   0
  25.       Top             =   0
  26.       Width           =   8415
  27.       Begin VideoSoftElastic VSElastic3 
  28.          AutoSizeChildren=   1  'Even Horizontal
  29.          BackColor       =   &H00C0C0C0&
  30.          BevelInner      =   7  'Shadow
  31.          BevelInnerWidth =   3
  32.          BevelOuter      =   1  'Raised
  33.          BevelOuterWidth =   1
  34.          BorderWidth     =   12
  35.          Height          =   3720
  36.          Left            =   2655
  37.          TabIndex        =   14
  38.          Top             =   0
  39.          Width           =   2475
  40.          Begin FileListBox File1 
  41.             Height          =   3345
  42.             Left            =   180
  43.             TabIndex        =   15
  44.             Top             =   180
  45.             Width           =   2115
  46.          End
  47.       End
  48.       Begin VideoSoftElastic VSElastic2 
  49.          AutoSizeChildren=   4  'Uneven Vertical
  50.          BackColor       =   &H00C0C0C0&
  51.          BevelOuter      =   1  'Raised
  52.          BevelOuterWidth =   1
  53.          BorderWidth     =   12
  54.          Height          =   3720
  55.          Left            =   0
  56.          ShadowColor     =   &H00000000&
  57.          TabIndex        =   11
  58.          Top             =   0
  59.          Width           =   2565
  60.          Begin DirListBox Dir1 
  61.             Height          =   2955
  62.             Left            =   180
  63.             TabIndex        =   12
  64.             Top             =   585
  65.             Width           =   2205
  66.          End
  67.          Begin DriveListBox Drive1 
  68.             Height          =   315
  69.             Left            =   180
  70.             TabIndex        =   13
  71.             Top             =   180
  72.             Width           =   2205
  73.          End
  74.       End
  75.       Begin VideoSoftElastic VSElastic4 
  76.          AutoSizeChildren=   4  'Uneven Vertical
  77.          BackColor       =   &H0000FF00&
  78.          BorderWidth     =   0
  79.          Height          =   3720
  80.          Left            =   5220
  81.          Splitter        =   1  'Yes (with uneven spacing)
  82.          TabIndex        =   1
  83.          Top             =   0
  84.          Width           =   3195
  85.          Begin VideoSoftElastic VSElastic6 
  86.             AutoSizeChildren=   3  'Even Vertical
  87.             BackColor       =   &H00C0C0C0&
  88.             BevelInner      =   7  'Shadow
  89.             BevelInnerWidth =   3
  90.             BevelOuter      =   1  'Raised
  91.             BevelOuterWidth =   1
  92.             BorderWidth     =   12
  93.             ChildSpacing    =   10
  94.             Height          =   2985
  95.             Left            =   0
  96.             TabIndex        =   6
  97.             Top             =   0
  98.             Width           =   3195
  99.             Begin CommandButton Command1 
  100.                Caption         =   "&Colors"
  101.                FontBold        =   -1  'True
  102.                FontItalic      =   0   'False
  103.                FontName        =   "System"
  104.                FontSize        =   9.75
  105.                FontStrikethru  =   0   'False
  106.                FontUnderline   =   0   'False
  107.                Height          =   555
  108.                Index           =   0
  109.                Left            =   180
  110.                TabIndex        =   10
  111.                Top             =   180
  112.                Width           =   2835
  113.             End
  114.             Begin CommandButton Command1 
  115.                Caption         =   "&Fonts"
  116.                FontBold        =   -1  'True
  117.                FontItalic      =   0   'False
  118.                FontName        =   "System"
  119.                FontSize        =   9.75
  120.                FontStrikethru  =   0   'False
  121.                FontUnderline   =   0   'False
  122.                Height          =   540
  123.                Index           =   1
  124.                Left            =   180
  125.                TabIndex        =   9
  126.                Top             =   885
  127.                Width           =   2835
  128.             End
  129.             Begin CommandButton Command1 
  130.                FontBold        =   -1  'True
  131.                FontItalic      =   0   'False
  132.                FontName        =   "System"
  133.                FontSize        =   9.75
  134.                FontStrikethru  =   0   'False
  135.                FontUnderline   =   0   'False
  136.                Height          =   540
  137.                Index           =   2
  138.                Left            =   180
  139.                TabIndex        =   8
  140.                Top             =   1575
  141.                Width           =   2835
  142.             End
  143.             Begin CommandButton Command1 
  144.                FontBold        =   -1  'True
  145.                FontItalic      =   0   'False
  146.                FontName        =   "System"
  147.                FontSize        =   9.75
  148.                FontStrikethru  =   0   'False
  149.                FontUnderline   =   0   'False
  150.                Height          =   540
  151.                Index           =   3
  152.                Left            =   180
  153.                TabIndex        =   7
  154.                Top             =   2265
  155.                Width           =   2835
  156.             End
  157.          End
  158.          Begin VideoSoftElastic VSElastic5 
  159.             AutoSizeChildren=   1  'Even Horizontal
  160.             BackColor       =   &H00C0C0C0&
  161.             BevelInner      =   7  'Shadow
  162.             BevelInnerWidth =   4
  163.             BevelOuter      =   1  'Raised
  164.             BevelOuterWidth =   1
  165.             BorderWidth     =   10
  166.             ChildSpacing    =   12
  167.             Height          =   645
  168.             Left            =   0
  169.             TabIndex        =   2
  170.             Top             =   3075
  171.             Width           =   3195
  172.             Begin CommandButton Command1 
  173.                Caption         =   "A"
  174.                Height          =   345
  175.                Index           =   6
  176.                Left            =   150
  177.                TabIndex        =   5
  178.                Top             =   150
  179.                Width           =   855
  180.             End
  181.             Begin CommandButton Command1 
  182.                Caption         =   "B"
  183.                Height          =   345
  184.                Index           =   5
  185.                Left            =   1185
  186.                TabIndex        =   4
  187.                Top             =   150
  188.                Width           =   840
  189.             End
  190.             Begin CommandButton Command1 
  191.                Caption         =   "C"
  192.                Height          =   345
  193.                Index           =   4
  194.                Left            =   2205
  195.                TabIndex        =   3
  196.                Top             =   150
  197.                Width           =   840
  198.             End
  199.          End
  200.       End
  201.    End
  202. End
  203. Option Explicit
  204.  
  205. Sub Command1_Click (Index As Integer)
  206.   Dim newcolor&
  207.   Select Case Index
  208.  
  209.     Case 0  'Change to random colors
  210.       newcolor = QBColor(Rnd * 15)
  211.       VSELastic1.BackColor = newcolor
  212.       VSelastic4.BackColor = newcolor
  213.  
  214.     Case 1   'Fonts
  215.       File1.FontSize = (File1.FontSize + 2) Mod 13
  216.       Drive1.FontSize = (Drive1.FontSize + 2) Mod 13
  217.       Dir1.FontSize = (Dir1.FontSize + 2) Mod 13
  218.  
  219.   End Select
  220. End Sub
  221.  
  222.